<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
<title>Cadastro de Paciente</title>
</head>

<body>
	<ui:composition template="/WEB-INF/template/templateMaster.xhtml">
		<ui:define name="conteudo">
			<h1>Cadastro de Consulta</h1>
			<h:form id="consutla">
				<h:messages />
				<h:inputHidden value="#{consultaBean.consulta.idConsulta}" />
			
				<h:panelGrid columns="2">
					<h:outputLabel value ="Medico:" />
			<h:selectOneMenu value="#{consultaBean.consulta.medico}">
			  <f:selectItems value ="#{consultaBean.listaMedicos}" />
			</h:selectOneMenu>	
				</h:panelGrid>

				<h:commandButton action="#{consultaBean.salvar}" value="Salvar"/>
			</h:form>
		</ui:define>
	</ui:composition>
</body>
</html>